#ifndef __SW_DP_SPI_H__
#define __SW_DP_SPI_H__

//在连接时，调用该函数，初始化spi
void SPI_PORT_SWD_SETUP(void);
//切换到swd模式，发送一段swj序列
void SPI_SWJ_Sequence(uint32_t count, const uint8_t *data);
void SPI_SWD_Sequence(uint32_t info, const uint8_t *swdo, uint8_t *swdi);
uint8_t SPI_SWD_Transfer(uint32_t request, uint32_t *data);
#endif /*__SW_DP_SPI_H__*/